<?php
/**
 * Created by PhpStorm.
 * User: muhe0
 * Date: 2017/5/7
 * Time: 6:53
 */

namespace LDL\Twspider\C\Timer;

use VDB\Spider\Stackable ;
use LDL\Twspider\C\Taskrun;
class TimeRun extends Taskrun
{
    /**
     * @var Timeoutr
     */
    private  $rel;//= new Stackable();
    function  __construct($job){
//	   $this->rel=new Stackable(); 
	    $this->rel=$job ;
    }
    function cancel(){
    	$this->rel->cancel();
    }
    function run(){
	parent::run() ;
        $this->rel->start($this,$this->worker);

    }
}
